<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {if condition="$admin_id === 1"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-source="auth/admin/selectpage" data-field="nickname" class="form-control selectpage" name="row[admin_id]" type="text" value="{$row.admin_id|htmlentities}">
        </div>
    </div>
    {/if}
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Data_source_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-data_source_id" data-rule="required" min="0" data-source="data_source/index" data-field="title" class="form-control selectpage" name="row[data_source_id]" type="text" value="{$row.data_source_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Country_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-country_ids" data-rule="required" data-source="country/index" data-multiple="true" class="form-control selectpage" name="row[country_ids]" type="text" value="{$row.country_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Material_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-material_id" data-rule="required" min="0" data-source="material/index" class="form-control selectpage" name="row[material_id]" type="text" value="{$row.material_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" min="0" class="form-control" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Display_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-display_num" data-rule="required" min="0" class="form-control" name="row[display_num]" type="number" value="{$row.display_num|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-total_num" data-rule="required" min="0" class="form-control" name="row[total_num]" type="number" value="{$row.total_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Active_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-active_num" data-rule="required" min="0" class="form-control" name="row[active_num]" type="number" value="{$row.active_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-new_num" data-rule="required" min="0" class="form-control" name="row[new_num]" type="number" value="{$row.new_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Target_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-target_num" data-rule="required" min="0" class="form-control" name="row[target_num]" type="number" value="{$row.target_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Complete_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-complete_num" data-rule="required" min="0" class="form-control" name="row[complete_num]" type="number" value="{$row.complete_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Base_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-base_num" data-rule="required" min="0" class="form-control" name="row[base_num]" type="number" value="{$row.base_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Eat_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-eat_num" data-rule="required" min="0" class="form-control" name="row[eat_num]" type="number" value="{$row.eat_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Click_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-click_num" data-rule="required" min="0" class="form-control" name="row[click_num]" type="number" value="{$row.click_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_click_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-total_click_num" data-rule="required" min="0" class="form-control" name="row[total_click_num]" type="number" value="{$row.total_click_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Conversion_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-conversion_rate" data-rule="required" min="0" class="form-control" step="0.01" name="row[conversion_rate]" type="number" value="{$row.conversion_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input disabled id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Whatsup_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="whatsupStatusList" item="vo"}
            <label for="row[whatsup_status]-{$key}"><input disabled id="row[whatsup_status]-{$key}" name="row[whatsup_status]" type="radio" value="{$key}" {in name="key" value="$row.whatsup_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin_whatsup_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="adminWhatsupStatusList" item="vo"}
            <label for="row[admin_whatsup_status]-{$key}"><input id="row[admin_whatsup_status]-{$key}" name="row[admin_whatsup_status]" type="radio" value="{$key}" {in name="key" value="$row.admin_whatsup_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-desc" class="form-control" name="row[desc]" type="text" value="{$row.desc|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Whatsup_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-whatsup_url" class="form-control" name="row[whatsup_url]" type="text" value="{$row.whatsup_url|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
